import { httpTokenRequest } from '../utils/http.js';

// 获取我的消息数据
export function getMessage(params) {
	return httpTokenRequest({
		url: '/api/mymessage/getmessage',
		method: 'POST',
		params: params
	});
}

// 获取我的评论列表
export function getComment(params) {
	return httpTokenRequest({
		url: '/api/mymessage/getcomment',
		method: 'POST',
		params: params
	});
}

// 获取我的点赞列表
export function getPraise(params) {
	return httpTokenRequest({
		url: '/api/mymessage/new_getgivelike',
		method: 'POST',
		params: params
	});
}

// 获取消息通知未读数
export function getmessage_count(params) {
	return httpTokenRequest({
		url: '/api/mymessage/getmessage_count',
		method: 'POST',
		params: params
	});
}

// 获取回答问题列表
export function answerList(params) {
	return httpTokenRequest({
		url: '/api/mymessage/answerList',
		method: 'POST',
		params: params
	});
}

// 获取公告活动列表
export function getList(params) {
	return httpTokenRequest({
		url: '/api/Mymessage/getList',
		method: 'POST',
		params: params
	});
}

// 获得公告活动列表详情
export function getListInfo(params) {
	return httpTokenRequest({
		url: '/api/Mymessage/getListInfo',
		method: 'POST',
		params: params
	});
}

// 清除未读消息
export function clearunread(params) {
	return httpTokenRequest({
		url: '/api/mymessage/clearunread',
		method: 'POST',
		params: params
	});
}

// 检查问题是否存在
export function checkQuiz(params) {
	return httpTokenRequest({
		url: '/api/mymessage/checkquiz',
		method: 'POST',
		params: params
	});
}
